<?php
/**
 * @author Mingming Tang iamalazyrat@gmail.com
 */

class Mall extends Base{

    public static $timestamps   =   true;

    public static $table        =   'malls';

    public static $accessible   =   array('cname', 'ename', 'rank', 'url', 'logo_url', 'description', 'type_id');

    public function type() {
      return $this->belongs_to('Type');
    }
}
